// Mod 缩写
let MOD = (domain, id, x) => (x ? `${x}x ` : "") + (id.startsWith('#') ? '#' : "") + domain + ":" + id.replace('#', '')
let CR = (id, x) => MOD("create", id, x)
let CRA = (id, x) => MOD("createaddition", id, x)
let TC = (id, x) => MOD("tconstruct", id, x)
let MC = (id, x) => MOD("minecraft", id, x)
let KJ = (id, x) => MOD("kubejs", id, x)
let FD = (id, x) => MOD("farmersdelight", id, x)
let BOP = (id, x) => MOD("biomesoplenty", id, x)
let SD = (id, x) => MOD("storagedrawers", id, x)
let SP = (id, x) => MOD("supplementaries", id, x)
let F = (id, x) => MOD("forge", id, x)
let OCC = (id, x) => MOD("occultism", id, x)
let MEK = (id, x) => MOD("mekanism", id, x)
let MEKG = (id, x) => MOD("mekanismgenerators", id, x)
let MEKT = (id, x) => MOD("mekanismtools", id, x)
let IF = (id, x) => MOD("industrialforegoing", id, x)
let TAC = (id, x) => MOD("tac", id, x)
let FAA = (id, x) => MOD("forbidden_arcanus", id, x)
let DC = (id, x) => MOD("druidcraft", id, x)
let IAF = (id, x) => MOD("iceandfire", id, x)
let TM = (id, x) => MOD("torchmaster", id, x)
let AR = (id, x) => MOD("doomangelring", id, x)
let TE = (id, x) => MOD("thermal", id, x)
let PW = (id, x) => MOD("powah", id, x)
let RS = (id, x) => MOD("refinedstorage", id, x)
let PZ = (id, x) => MOD("pipez", id, x)
let TLM = (id, x) => MOD("touhou_little_maid", id, x)
let CJ = (id, x) => MOD("conjuring", id, x)
let CO = (id, x) => MOD("crossroads", id, x)
let AE2 = (id, x) => MOD("appliedenergistics2", id, x)
//





onEvent('recipes', event => {
//移除原版安山合金配方
event.remove({id:CR('crafting/materials/andesite_alloy')})	
event.remove({id:CR('crafting/materials/andesite_alloy_from_zinc')})
event.remove({id:CR('mixing/andesite_alloy')})	
event.remove({id:CR('mixing/andesite_alloy_from_zinc')})	
event.shaped(Item.of(KJ("prototype_andesite_alloy"), 2), 
['SP ', 
 'PE ', 
 'ES '],
{P: 'minecraft:andesite', 
 S: 'kubejs:dendro_ash',
 E: 'minecraft:iron_nugget'}).id('eow:prototype_andesite_alloy')
event.shaped(Item.of(KJ("prototype_andesite_alloy"), 2), 
['SP ', 
 'PE ', 
 'ES '],
{P: 'minecraft:andesite', 
 S: 'kubejs:dendro_ash',
 E: 'create:zinc_nugget'}).id('eow:prototype_andesite_alloy_from_zinc')
event.custom({
  "type": "environmental:baking",
  "ingredient": {
    "item": "kubejs:prototype_andesite_alloy"
  },
  "result": "create:andesite_alloy",
  "experience": 0.1,
  "cookingtime": 100
})
event.custom({
  "type": "create:mixing",
  "ingredients": [
    {
      "item": "minecraft:dirt"
    },
    {
      "fluid": "minecraft:water",
      "nbt": {},
      "amount": 125
    }
  ],
  "results": [
    {
      "item": "2x environmental:mud_ball"
    }
  ]
})
//移除原版沙子冲洗黏土球配方
event.remove({id:CR('splashing/sand')})	
//泥巴黏土球
event.custom({
  "type": "create:splashing",
  "ingredients": [
    {
      "item": "environmental:mud_ball"
    }
  ],
  "results": [
    {
      "item": "minecraft:clay_ball",
      "chance": 0.50
    }
  ]
})
event.custom({
  "type": "create:splashing",
  "ingredients": [
    {
      "item": "minecraft:sand"
    }
  ],
  "results": [
    {
      "item": "kubejs:washed_sand_pile",
      "chance": 0.50
    }
  ]
})
event.custom({
  "type": "interactio:item_fluid_transform",
  "inputs": [
    {
      "item": "kubejs:washed_sand_pile",
      "count": 2
    },
    {
      "item": "minecraft:cobblestone",
      "count": 1
    }
  ],
  "fluid": {
    "fluid": "kubejs:dendro_solution"
  },
  "output": {
    "item": "create:andesite_cobblestone",
    "count": 1
  },
  "consume_fluid": 0.10
}).id('eow:andesite_alloy_from_solution')
event.custom({
  "type": "create:mixing",
  "ingredients": [
    {
      "item": "minecraft:cobblestone"
    },
    {
      "item": "kubejs:washed_sand_pile",
      "count": 2
    },
    {
      "fluid": "kubejs:dendro_solution",
      "nbt": {},
      "amount": 100
    }
  ],
  "results": [
    {
      "item": "create:andesite_cobblestone"
    }
  ]
})
//移除匠魂冶炼炉黄铜合金配方
event.remove({id:TC('smeltery/alloys/molten_brass')})
//修改机动黄铜配方
//直接修改数据包了，不在这里//
//修改原版打火石配方
event.remove({id:MC('flint_and_steel')})
event.shapeless('minecraft:flint_and_steel', ['minecraft:blackstone', '#forge:ingots/brass'])
//铜复制术
event.custom({
  "type": "create:mixing",
  "ingredients": [
    {
      "fluid": "tconstruct:molten_copper",
      "amount": 144
    },
    {
      "fluid": "create:chocolate",
      "amount": 250
    }
  ],
  "results": [
    {
      "fluid": "tconstruct:molten_copper",
      "amount": 288
    }
  ]
})
//手搓安山机壳变贵了，需要四个安山合金，用土豆泥可以减少消耗[wip]（
//直接修改数据包了，不在这里//

//





})